import noCourse from '@/assets/img/no-course.svg'

export interface NotFoundCodeValue {
  // 标题
  title: string
  // 描述
  desc?: string
  // 按钮文字
  buttonText: string
  // 缺省图
  img: string
  // 点击按钮跳转的路径
  buttonPath: string
  // 跳转到404页面的基础路径
  basePath: string
}

export const notFoundCodeMap: Record<string, NotFoundCodeValue> = {
  'SOURCE-10013': {
    title: '课程不存在',
    buttonText: '返回课程广场',
    img: noCourse,
    buttonPath: '/',
    basePath: '/business-404'
  },
  'MODEL-500023': {
    title: '模型不存在',
    buttonText: '返回模型库',
    img: noCourse,
    buttonPath: '/model-base/list/public-model',
    basePath: '/business-404'
  },
  'PROJ-404': {
    title: '项目案例不存在',
    buttonText: '返回项目案例',
    img: noCourse,
    buttonPath: '/item-case/list',
    basePath: '/business-404'
  },
  'BUCKET-500009': {
    title: '数据集不存在',
    buttonText: '返回数据集',
    img: noCourse,
    buttonPath: '/data-set/list/public-data',
    basePath: '/business-404'
  },
  'PK-100011': {
    title: '活动不存在',
    buttonText: '返回打榜竞技',
    img: noCourse,
    buttonPath: '/hit-contest/list',
    basePath: '/business-404'
  },
  'ALGORITHM-200004': {
    title: '算法服务不存在',
    buttonText: '返回算法服务',
    img: noCourse,
    buttonPath: '/algorithm-center/list',
    basePath: '/business-404'
  }
  // 'MARK-100002': {
  //   title: '标注任务不存在',
  //   buttonText: '返回标注列表',
  //   img: noCourse,
  //   buttonPath: '/dmp/task-list',
  //   basePath: '/business-404'
  // }
}
